<div class="index">
   <h2>Laporan Absensi Karyawan Harian</h2>
   <?php foreach ($dataReports as $reports) { ?>
   
   <h3 style="font-size: 1.5em;">Laporan Harian <?php echo $reports['employee_username']; ?></h3>
   <table>
      <tr>
         <th>Tanggal</th>
         <th>Jam Kerja</th>
         <th>Jam Masuk</th>
         <th>Jam Keluar</th>
         <th>Absen Masuk</th>
         <th>Absen Pulang</th>
         <th>Terlambat</th>
         <th>Pulang Awal</th>
         <th>Lembur</th>
         <th>Alpha</th>
         <th>Ket</th>
      </tr>
      
      <?php foreach ($reports['reports'] as $rep) { ?>
      <tr>
         <td><?php echo $rep['tanggal']; ?></td>
         <td><?php echo $rep['jam_kerja']; ?></td>
         <td><?php echo $rep['jam_kerja_masuk']; ?></td>
         <td><?php echo $rep['jam_kerja_pulang']; ?></td>
         <td><?php echo (is_null($rep['absen_masuk'])) ? '---' : $rep['absen_masuk']; ?></td>
         <td><?php echo (is_null($rep['absen_pulang'])) ? '---' : $rep['absen_pulang']; ?></td>
         <td><?php echo $rep['terlambat']; ?></td>
         <td><?php echo $rep['pulang_awal']; ?></td>
         <td><?php echo $rep['lembur']; ?></td>
         <td><?php echo $rep['absent']; ?></td>
         <td>---</td>
      </tr>
      <?php } ?>
   </table>
   
   <?php } ?>
</div>